<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="renderer" content="webkit">
    <!-- TopJUI框架样式 -->
    <link type="text/css" href="/static/topjui/themes/default/topjui.core.min.css" rel="stylesheet">
    <link type="text/css" href="/static/topjui/themes/default/topjui.blue.css" rel="stylesheet" id="dynamicTheme"/>
    <!-- FontAwesome字体图标 -->
    <link type="text/css" href="/static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <!-- layui框架样式 -->
    <link type="text/css" href="/static/plugins/layui/css/layui.css" rel="stylesheet"/>
    <!-- jQuery相关引用 -->
    <script type="text/javascript" src="/static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugins/jquery/jquery.cookie.js"></script>
    <!-- TopJUI框架配置 -->
    <script type="text/javascript" src="/static/public/js/topjui.config.js"></script>
    <!-- TopJUI框架核心-->
    <script type="text/javascript" src="/static/topjui/js/topjui.core.min.js"></script>
    <!-- TopJUI中文支持 -->
    <script type="text/javascript" src="/static/topjui/js/locale/topjui.lang.zh_CN.js"></script>
    <!-- layui框架js -->
    <script type="text/javascript" src="/static/plugins/layui/layui.js" charset="utf-8"></script>
</head>

<body>

<div class="topjui-fluid">
    <fieldset>
        <legend>个人基础信息</legend>
    </fieldset>
    <div class="topjui-row">
        <div class="topjui-col-sm8">
            <div class="topjui-row">
                <div class="topjui-col-sm12"><label class="topjui-form-label">用户名</label>
                    <div class="topjui-input-block">
                        <input type="text" name="userNameId" data-toggle="topjui-textbox" th:value="${user.userAccount}"
                               data-options="readonly:true,required:true,prompt:'必填'">
                    </div>
                </div>
            </div>
            <div class="topjui-row">
                <div class="topjui-col-sm12"><label class="topjui-form-label">姓名</label>
                    <div class="topjui-input-block">
                        <input type="text" name="userName" data-toggle="topjui-textbox" th:value="${user.userNickname}"
                               data-options="required:true,readonly:true,prompt:'必填'">
                    </div>
                </div>
            </div>
            <div class="topjui-row">
                <div class="topjui-col-sm12"><label class="topjui-form-label">性别</label>
                    <div class="topjui-input-block">

                        <input name="sex" data-toggle="topjui-radiobutton"
                               data-options="value:'1',label:'男',labelPosition:'after',checked:'true'">
                        <input name="sex" data-toggle="topjui-radiobutton"
                               data-options="value:'2',label:'女',labelPosition:'after'">
                    </div>
                </div>
            </div>
            <div class="topjui-row">
                <div class="topjui-col-sm12"><label class="topjui-form-label">年龄</label>
                    <div class="topjui-input-block">
                        <input type="text" name="age" value="0" data-toggle="topjui-numberbox"
                               data-options="groupSeparator:''">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="topjui-row">
        <div class="topjui-col-sm12"><label class="topjui-form-label">固定电话</label>
            <div class="topjui-input-block">
                <input type="text" name="telephone" th:value="${user.userTel}" data-toggle="topjui-textbox">
            </div>
        </div>
    </div>

    <div class="topjui-row">
        <div class="topjui-col-sm12"><label class="topjui-form-label">电子邮箱</label>
            <div class="topjui-input-block">
                <input type="text" name="email" th:value="${user.userEmail}" data-toggle="topjui-textbox"
                       data-options="required:true,validType:'email',prompt:'必填'">
            </div>
        </div>
    </div>

</div>


<!-- 存放具体业务页面需要引入的javascript文件 -->

<script>
    function changeAvatar(newValue, oldValue) {
        if (newValue) {
            $('#avatar').attr("src", newValue);
        }
    }
</script>


</body>

</html>
